package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xialinrui.entity.MoodRecord;
import com.xialinrui.mapper.MoodRecordMapper;
import com.xialinrui.service.MoodRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class MoodRecordServiceImpl extends ServiceImpl<MoodRecordMapper, MoodRecord> implements MoodRecordService {

    @Resource
    private MoodRecordMapper moodRecordMapper;

    @Override
    public void addOneMood(MoodRecord moodRecord) {
        moodRecordMapper.insert(moodRecord);
    }

    @Override
    public void delete(List<Long> ids) {
        moodRecordMapper.deleteBatchIds(ids);
    }
}
